package com.gtp.mq.demo.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.gtp.mq.demo.spring.producer.MyProducer;

@RestController
public class TestController {

	@Autowired
	private MyProducer myProducer;
	
    @GetMapping("/t1")
    public String test1() {
    	
    	for(int i=0;i<5;i++){
    		myProducer.test1("mq_ok_test_"+i);
    	}
    	
        return "ok";
    }
}
